using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

namespace hondaab.portal.motos_dir
{
    public partial class galeria_motos : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

            if (sf.cadena(Request["idfoto"]) != "")
            {

                Image1.ImageUrl = sf.cadena(Request["idfoto"]);
            }
            if (sf.entero(Request["id"]) != 0)
            {
                //cargargaleria(sf.entero(Request["id"]));
                lbltitulo.Text = motos.getmotos(sf.entero(Request["id"])).nombre;
            }

        }
        private void cargargaleria(int p)
        {
            lbltitulo.Text += motos.getmotos(p).nombre;
            RepeaterImagenes.DataSource = imagenes.getListimagenesByidarticulos(p);
            RepeaterImagenes.DataBind();
        }
        protected void btninformacion_Click(object sender, EventArgs e)
        {
            Response.Redirect("../motos_dir/form_informacion.aspx?ref=" + sf.cadena(Request["id"]));
        }
        protected void btnvolver_Click(object sender, EventArgs e)
        {
            Response.Redirect("../motos_dir/main_motos.aspx?id=" + sf.cadena(Request["id"]));
        }

        protected void Image1_Click(object sender, ImageClickEventArgs e)
        {

        }
    }
}
